z-base-32
The z-base-32
is a human-oriented base-32 encoding.
Rust
Crate
Installation
API
The library exposes two functions with the following signatures and an error type:
;
;
;
Example
use ;
CLI
This project also provides a CLI utility with a similar interface to the well-known base64
command.
Installation
To install z-base-32
CLI you can build it from source or download prebuild binary from releases.
cargo install --features cli z-base-32
Example
$ zbase32 -h
z-base-32: human-oriented base-32 encoding
Usage: zbase32 [OPTIONS] [FILE]
Arguments:
[FILE] File to encode or decode
Options:
-d, --decode Decode data
-w, --wrap <WRAP> Wrap encoded lines after COLS character [default: 76]
-h, --help Print help
-V, --version Print version
Python
Installation
The z-base-32
package is published at PyPI. Install it using the following command:
pip install z-base-32
Building
This crate can be compiled with the feature flag python
in which case it produces Python bindings. To build Python wheels use maturin
:
maturin build
API
Example
assert ==
assert == b